﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"  schema="dbo"
                   assembly="OpenSda.Agilcont.Common.Data.Entities"
                   namespace="OpenSda.Agilcont.Common.Data.Entities"
                   default-lazy="false" default-cascade="none">
  <class name="Proveedor" table="common_Proveedor">
    <id name="Identity" column="ProveedorId"  type="guid">
      <generator class="guid.comb"/>
    </id>

    <property name="Codigo" column="Codigo" type="String" length="50"  not-null="false"/>
    <property name="RazonSocial" column="RazonSocial" type="String" length="50"  not-null="false"/>
    <property name="RucDni" column="RucDni" type="String" length="50"  not-null="false"/>
    <property name="Direccion" column="Direccion" type="String" length="50"  not-null="false"/>
    <property name="Fonos" column="Fonos" type="String" length="50"  not-null="false"/>
    <property name="EstaActivo" column="EstaActivo" type="Boolean"  not-null="false"/>
    <property name="EstaAfectoARetencion" column="EstaAfectoARetencion" type="Boolean"  not-null="false"/>
    <property name="EstaAfectoDePercepcion" column="EstaAfectoDePercepcion" type="Boolean"  not-null="false"/>
 
    <many-to-one name="AgenciaRef" column="AgenciaId" class="OpenSda.Agilcont.Common.Data.Entities.Agencia, OpenSda.Agilcont.Common.Data.Entities" not-null="true" />

  </class>
</hibernate-mapping>
